Page({
  onLoad({ point }) {
    this.fake(point )
  },
  fake(point ) {
    const size = Math.floor(Math.random() * 4) + 3
    const type = size > 4 ? '号楼' : '栋'
    // 更新数据，重新渲染
    this.setData({ point, size, type })
  },

  goRoom(e) {
    wx.navigateTo({
      url: `/house_pkg/pages/room/index?point=${this.data.point}&building=${e.mark.building}`
    })
  }
})